From: Antoine Musso Date: Sun, 8 Jan 2006 18:15:36 +0000 (+0000) Subject: Fix #2571: Duplicate anchors and missing form id tag in search form on Cologne Blue... X-Git-Tag: 1.6.0~676 X-Git-Url: http://git.cyclocoop.org/%22.%24info%5B?a=commitdiff_plain;h=5ae42a93977000580b63d5e020d2d3f62faa5785;p=lhc%2Fweb%2Fwiklou.git Fix #2571: Duplicate anchors and missing form id tag in search form on Cologne Blue skin --- diff --git a/skins/CologneBlue.php b/skins/CologneBlue.php index ebe3fb4c12..eeff28a6dc 100644 --- a/skins/CologneBlue.php +++ b/skins/CologneBlue.php @@ -16,6 +16,8 @@ if( !defined( 'MEDIAWIKI' ) ) * @subpackage Skins */ class SkinCologneBlue extends Skin { + # We have several search form. Make sure they have different id + var $searchFormCount = '' ; function getStylesheet() { return "common/cologneblue.css?1"; @@ -300,17 +302,17 @@ class SkinCologneBlue extends Skin { function searchForm( $label = "" ) { - global $wgRequest; + global $wgRequest, $searchFormCount; $search = $wgRequest->getText( 'search' ); $action = $this->escapeSearchLink(); - $s = "
"; + $s = ""; if ( "" != $label ) { $s .= "{$label}: "; } - $s .= "" . "
"; - + $searchFormCount++; return $s; } }